package com.coderman.daoclient.bean;

/**
 * Created by ${fanchunshuai} on 2017-7-27.
 *
 * @version: V1.0
 * @Desc:
 * @Copyright (c) 2017 58到家-版权所有
 */
public class KVPair<K,V>{

    public static <K, V> KVPair<K, V> build(K k, V v) {
        return new KVPair<K, V>(k, v);
    }

    private final K key;
    private final V value;

    public KVPair(K k, V v) {
        this.key = k;
        this.value = v;
    }

    public K getKey() {
        return this.key;
    }

    public V getValue() {
        return this.value;
    }

    public java.lang.String toString() {
        return "Pair " + key + ": " + value;

    }
}
